<?php
$query = $this->clientemodel->buscaTodosClientes()->result();?>
<div class="span10">
    
<div class="row-fluid">
			<div class="page-header">
				<h1><?=$titulo;?></h1>
			</div>
			<table class="table table-striped table-bordered">
				<thead>
					<tr>
						<th>Foto</th>
						<th>Nome</th>
						<th>Data Nasc</th>
						<th>Telefone</th>
                                                <th>Situação</th>                                                
						<th>Ações</th>
					</tr>
				</thead>
				<tbody>
                                    <?php
                                     foreach ($query as $clientes ){ ?> 
                                    <tr class="pending-user odd gradeX">
                                        <?php
                                        $imagem = array(
                                            'src' => "img/".$clientes->foto,
                                            'alt' => $clientes->nome,
                                            'class' => 'thumbnail',
                                            'width' => '40',
                                            'height' => '40',
                                            'title' => $clientes->nome                                            
                                            );?>
											 
                                        <td><?=img($imagem);?>
                                            <span class="user-actions">
                                                <?=anchor(base_url()."clientecontroller/do_uploadFoto/".$clientes->id_cliente,"<i class='ico icon-edit'></i> FOTO",array('class'=>'label label-success'));?>
                                            </span></td>
                                        
                                        <td><?=character_limiter($clientes->nome,30);?><br /> <span class="user-actions"><?=anchor(base_url()."clientecontroller/do_upload/".$clientes->id_cliente," <i class='icon icon-ok-sign'></i> INSERIR IMAGEM ",array('class'=>'label label-info'));?></span></td>
					<td><?=$clientes->dataNascimento;?></td>
                                        <td><?=substr($clientes->telefone,4);?></td>
                                        <td><span class="label label-info"> ATIVO </span><br /> 
                                            <span class="user-actions"><?=anchor(base_url()."atendimentocontroller/adicionaratendimento/".$clientes->id_cliente," <i class='icon icon-ok-sign'></i> ATENDIMENTO ",array('class'=>'label label-success'));?></span>
                                        </td>
                                            <td>
                                              <span class="user-actions">  
                                                <?=anchor(base_url()."clientecontroller/alterarCliente/".$clientes->id_cliente,"<i class='ico icon-edit'></i> ALTERAR",array('class'=>'label label-success'));?>
                                                <?=anchor(base_url()."clientecontroller/excluirCliente/1","<i class='ico icon-remove'></i> EXCLUIR",array('class'=>'label label-important'));?>
                                                <?=anchor(base_url()."clientecontroller/historicoCliente/1","<i class='ico icon-info-sign'></i> HISTÓRICO",array('class'=>'label label-info'));?>
                                                <?=anchor(base_url()."clientecontroller/historicoCliente/1","<i class='ico icon-print'></i> IMPRIMIR",array('class'=>'label label-warning'));?>
                                            </span>
                                        </td>
				</tr>
                                <?php
                                     }?>
				
                               
				</tbody>
			</table>
		  </div>
</div>